<?php
/* @var $this TbauctionitemController */
/* @var $model Tbauctionitem */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tbauctionitem-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
	'htmlOptions'	=>	array(
		"enctype"=>"multipart/form-data",
	)
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'cahiID'); ?>
		<?php echo $form->textField($model,'cahiID',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'cahiID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nameOfEstate'); ?>
		<?php echo $form->textField($model,'nameOfEstate',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'nameOfEstate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bondHolder'); ?>
		<?php echo $form->textField($model,'bondHolder',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bondHolder'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'propertyDescription'); ?>
		<?php echo $form->textArea($model,'propertyDescription',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'propertyDescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'liquidator'); ?>
		<?php echo $form->textField($model,'liquidator',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'liquidator'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactPerson'); ?>
		<?php echo $form->textField($model,'contactPerson',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'contactPerson'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mastersRefNo'); ?>
		<?php echo $form->textField($model,'mastersRefNo',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'mastersRefNo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'occupantName'); ?>
		<?php echo $form->textField($model,'occupantName',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'occupantName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'expenses'); ?>
		<?php echo $form->textField($model,'expenses',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'expenses'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'valuation'); ?>
		<?php echo $form->textField($model,'valuation',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'valuation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'arrearRatesAndTaxes'); ?>
		<?php echo $form->textField($model,'arrearRatesAndTaxes',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'arrearRatesAndTaxes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'monthlyRatesAndTaxes'); ?>
		<?php echo $form->textField($model,'monthlyRatesAndTaxes',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'monthlyRatesAndTaxes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'arrearLevies'); ?>
		<?php echo $form->textField($model,'arrearLevies',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'arrearLevies'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'monthlyLevies'); ?>
		<?php echo $form->textField($model,'monthlyLevies',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'monthlyLevies'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'auctioneer'); ?>
		<?php /*?><?php echo $form->textField($model,'auctioneer',array('size'=>50,'maxlength'=>50)); ?><?php */?>
		<?php echo $form->dropDownList($model,'auctioneer',array("Jade","Other")); ?>
		<?php echo $form->error($model,'auctioneer'); ?>
	</div>

	<div class="row" hidden="true">    	
		<?php echo $form->labelEx($model,'dateTimeCreated'); ?>
		<?php echo $form->textField($model,'dateTimeCreated', array('value' => date('Y-m-d H:i:s'), 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'dateTimeCreated'); ?>
	</div>

	<div class="row" hidden="true">
		<?php echo $form->labelEx($model,'createdUser'); ?>
		<?php echo $form->textField($model,'createdUser',array('value'=> Yii::app()->user->name, 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'createdUser'); ?>
	</div>

	<div class="row" hidden="true">
		<?php echo $form->labelEx($model,'startingBid'); ?>
		<?php echo $form->textField($model,'startingBid',array('size'=>15,'maxlength'=>15,'value'=>'0', 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'startingBid'); ?>
	</div>

	<div class="row" hidden="true">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status', array('value'=>'1', 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row" hidden="true">
		<?php echo $form->labelEx($model,'active'); ?>
		<?php echo $form->textField($model,'active', array('value'=>'1', 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'active'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fileWindeed'); ?>
		<?php echo $form->fileField($model,'fileWindeed', array('value'=>'1', 'readonly' => 'true')); ?>
		<?php echo $form->error($model,'fileWindeed'); ?>
	</div>




	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->